from  pom.basepage import BasePage
from pom.loginpage import LoginPage
class TogglePage(BasePage):

    def __init__(self,driver):
        super(TogglePage, self).__init__(driver)
        self.login_name_xpath = '//*[@resource-id="org.cnodejs.android.md:id/tv_login_name"]'


    def click_login_name(self):
        self.driver.find_element_by_xpath(self.login_name_xpath).click()
        return LoginPage(self.driver)
